{include file="../include.tpl"}
<body>
{literal}
<script>
$(function()
{
		$("input[type=submit], a, button").button().click(function(event) {
			    var bid = $(event.target)[0].id;
			    if(bid=="btnSave")
			    {
			        check();
			    }
		});
});
function check()
{
    if($("#oldPass").val()=="")
    {
        $("#msg_oldPass").html("请输入原密码");
        return false;
    }
    $("#msg_oldPass").html("");
    if($("#newPass").val()=="")
    {
        $("#msg_newPass").html("请输入新密码");
        return false;
    }
    $("#msg_newPass").html("");
    if($("#conPass").val()=="")
    {
        $("#msg_conPass").html("请输入确认密码");
        return false;
    }
    $("#msg_conPass").html("");
    $("#form1")[0].submit();
    return true;
}
</script>
{/literal}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" height="29" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29"/></td>
    <td height="29" valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">修改密码</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td height="71" valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="13" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td class="left_txt">当前位置：修改密码</td>
          </tr>
          <tr>
            <td height="20"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
              <tr>
                <td></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" height="55" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="10%" height="55" valign="middle"><img src="images/title.gif" width="54" height="55"></td>
                <td width="90%" valign="top"><span class="left_txt2">在这里，您可以修改您的后台登陆密码</span></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
              <tr>
                <td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;修改密码</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
			<form name="form1" id="form1" method="POST" action="?act=admin&op=savePass" onsubmit="return check();">
              <tr>
                <td width="100px" height="50" align="right" bgcolor="#f2f2f2" class="left_txt2">原密码：</td>
                <td width="20px" bgcolor="#f2f2f2">&nbsp;</td>
                <td width="100px" bgcolor="#f2f2f2"><input name="oldPass" id="oldPass" value="" type="password" id="title" size="30" /></td>
                <td height="50" bgcolor="#f2f2f2" class="msg_txt" id="msg_oldPass"></td>
              </tr>
              <tr>
                <td align="right" height="50" class="left_txt2">新密码：</td>
                <td>&nbsp;</td>
                <td ><input type="password" name="newPass" id="newPass" size="30" /></td>
                <td  class="msg_txt" id="msg_newPass"></td>
              </tr>
              <tr>
                <td  align="right" height="50" bgcolor="#f2f2f2" class="left_txt2">确认新密码：</td>
                <td bgcolor="#f2f2f2">&nbsp;</td>
                <td bgcolor="#f2f2f2"><input type="password" name="conPass" id="conPass" size="30" /></td>
                <td bgcolor="#f2f2f2" class="msg_txt" id="msg_conPass"></td>
              </tr>
              <tr><td colspan="3">&nbsp;</td></tr>
 			<tr>
              <td align="right"></td>
              <td align="right">&nbsp;</td>
              <td><button id="btnSave">保存</button>&nbsp;&nbsp;&nbsp;&nbsp;</td>
            </tr>
            </form>
            </table></td>
          </tr>
        </table>
          </td>
      </tr>
    </table></td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
      <td height="17" valign="top" background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>

</body>
